package com.nxj.controller;

import com.nxj.annotations.MyController;
import com.nxj.annotations.MyRequestMapping;
import com.nxj.annotations.MySecurity;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@MyController
@MyRequestMapping("/demo")
public class AuthorityController {

    @MyRequestMapping("/authority.do")
    @MySecurity({"abc", "ddd"})
    public void hello(HttpServletRequest request, HttpServletResponse response) {
        System.out.println("请求成功");
    }

}
